<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 200px;
            margin: 50px auto;
        }

        ul li {
            list-style: none;
        }

        .box li {
            height: 50px;
            color: white;
            font-size: 0;
            background-color: greenyellow;
            border-radius: 10px;
            text-align: center;
            line-height: 50px;
            /* 元素中继承不了vertical-align */
            /* vertical-align: middle; */
        }

        .box li:nth-child(n+2) {
            margin-top: 10px;
        }

        .box1 img {
            border-radius: 50%;
            /* 图片对齐方式为居中 */
            vertical-align: middle;
        }

        .box1 span {
            margin-left: 10px;
            font-size: 18px;
            display: inline-block;
            font-weight: normal;
            /* 两个元素都要设置才能都居中 */
            /* 文字对齐方式为居中 */
            vertical-align: middle;
        }
    </style>
</head>

<body>
    <div class="box">
        <ul>
            <li>
                <div class="box1">
                    <img src="../html/小米商城/images/xmlog.png" alt="" style="width: 40px;">
                    <span>循环第一首</span>
                </div>
            </li>
            <li>
                <div class="box1">
                    <img src="../html/小米商城/images/xmlog.png" alt="" style="width: 40px;">
                    <span>循环第一首</span>
                </div>
            </li>
            <li>
                <div class="box1">
                    <img src="../html/小米商城/images/xmlog.png" alt="" style="width: 40px;">
                    <span>循环第一首</span>
                </div>
            </li>
        </ul>

    </div>
</body>

</html>